<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <button @click="btnClick1">按钮1</button>
        <button @click="btnClick2('按钮2')">按钮2</button>
        <button @click="btnClick3(abc, $event)">按钮3</button>
        <button>按钮4</button>
        <button>按钮5</button>
    </div>
    <script src='../js/vue.js'></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                abc: '我是abc'
            },
            methods: {
                btnClick1() {
                    console.log('123');
                },
                btnClick2(abc) {
                    console.log(abc);
                },
                btnClick3(abc, event) {
                    console.log(abc, event);
                }
            }
        })
    </script>
</body>

</html>